import { http } from '../service';

// 发起文件签署
export function sendSignFile(params: any) {
  return http.middleware({
    url: `/ctms/Rest/projectTaskFileSign/signFile`,
    method: 'POST',
    data: params,
  });
}

// 撤回重签
export function revokeSign(params: any) {
  return http.middleware({
    url: `/ctms/Rest/projectTaskFileSign/revokeSign`,
    method: 'POST',
    data: params,
  });
}

// 查看签署
export function viewSign(params: any) {
  return http.middleware({
    url: `/ctms/Rest/projectTaskFileSign/viewSign`,
    method: 'GET',
    params,
  });
}

// 查看签署的设置
export function viewSignSet(params: any) {
  return http.middleware({
    url: `/ctms/Rest/projectTaskFileSign/viewSignSet`,
    method: 'GET',
    params,
  });
}

// 催签
export function urgeSign(params: any) {
  return http.middleware({
    url: `/ctms/Rest/projectTaskFileSign/urgeSign`,
    method: 'POST',
    data: params,
  });
}

// 发起签署-组织
export function orgSignFile(params: any) {
  return http.middleware({
    url: `/ctms/Rest/projectTaskFileSign/orgSignFile`,
    method: 'POST',
    data: params,
  });
}
